WebSocketServer{ }
start{
  int port=getWebSocketPort(svc.getConfiguration());
  final ServerBootstrap bootstrap=new ServerBootstrap(new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),Executors.newCachedThreadPool()));
  final WebSocketServerPipelineFactory factory=new WebSocketServerPipelineFactory(svc);
  bootstrap.setPipelineFactory(factory);
  final Channel server=bootstrap.bind(new InetSocketAddress(port));
  svc.addShutdownHook(new Runnable(){
      bootstrap.releaseExternalResources();
      factory.getWebSocketServerHandler().stop();
      svc=null;
}
run{
  bootstrap.releaseExternalResources();
  factory.getWebSocketServerHandler().stop();
  svc=null;
}
getWebSocketPort{
  Integer port=config.getIntProperty(ErraiServiceConfigurator.WEB_SOCKET_PORT);
}
